package com.hrms.web.sys_menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrms.web.sys_menu.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Title: SysMenuMapper
 * @Author zhanji
 * @Package com.hrms.web.sys_menu.mapper
 * @description:
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    //根据用户Id查询菜单
    List<SysMenu> selectMenuByUserId(@Param("userId") Long userId);
    //根据角色Id查询菜单
    List<SysMenu> selectMenuByRoleId(@Param("roleId") Long roleId);

}
